//
//  LHQDestinationDetailPhotoShowCollectionViewCell.m
//  God_is_a_Girl
//
//  Created by dllo on 15/9/25.
//  Copyright (c) 2015年 呸. All rights reserved.
//

#import "LHQDestinationDetailPhotoShowCollectionViewCell.h"
#import <UIImageView+WebCache.h>
@implementation LHQDestinationDetailPhotoShowCollectionViewCell
-(instancetype)initWithFrame:(CGRect)frame
{
    
    self = [super  initWithFrame:frame];
    if (self) {
        self.photo = [[UIImageView  alloc] init];
        [self.contentView  addSubview:self.photo];
    }
    
    return self;
    
}

-(void)applyLayoutAttributes:(UICollectionViewLayoutAttributes *)layoutAttributes
{
    
    [super  applyLayoutAttributes:layoutAttributes];
    
    self.photo.frame = CGRectMake(0, 0, self.contentView.frame.size.width, self.contentView.frame.size.height);
    self.photo.layer.cornerRadius = 8;
    self.photo.layer.masksToBounds = YES;
    
}
-(void)setModel:(LHQDestinationDetailPhotoShow *)model
{
    
    
    [self.photo sd_setImageWithURL:[NSURL  URLWithString:model.photo] placeholderImage:[UIImage  imageNamed:@"1436964361872.jpg"]];
    
    
    
}





@end
